#pragma once
#include "Browserview.h"
#include "IDBJSCall.h"

class CDbJsCallback
{
public:
	CDbJsCallback(void);
	~CDbJsCallback(void);
	static CString BeginTransaction(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString CommitTransaction(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString RollbackTransaction(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString ExecuteQuery(DISPPARAMS* params, VARIANT* retval , void* pContext) ;
	static CString Bind(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString IsEof(DISPPARAMS* params, VARIANT* retval , void* pContext) ;
	static CString NextRow(DISPPARAMS* params, VARIANT* retval , void* pContext) ;
	static CString PrepareStatement(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString ExecuteUpdate(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString GetInt(DISPPARAMS* params, VARIANT* retval , void* pContext);
	static CString GetString(DISPPARAMS* params, VARIANT* retval , void* pContext) ;
	IDbJsCall* GetDbJsCall()
	{
		return m_pDbJsCall;
	}
private:
	IDbJsCall* m_pDbJsCall;


};


IDbJsCall*  WINAPI DbJsCreateObject(LPCWSTR strType);
